package cultmob.cine.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import br.gov.pe.tce.entity.TceEntity;
import br.gov.pe.tce.exception.NegocioException;
import br.gov.pe.tce.exception.PrincipalException;

@Entity
@Table(name="CINE_HorarioFilme")
public class HorarioEntity extends TceEntity{
	
	@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column (name = "Codigo", nullable=false, length=4)
	private Integer id;

	@Column (name = "Horario", nullable=false, length=3)
	private Integer hora;

	@Column (name = "Filme", nullable=false, length=3)
	private Integer filme;
	
	@Column (name = "Cinema", nullable=false, length=3)
	private Integer cinema;
	
	public HorarioEntity() {
		
	}
	
	public HorarioEntity(Integer id, Integer hora, Integer filme, Integer cinema) {
		super();
		this.id = id;
		this.hora = hora;
		this.filme = filme;
		this.cinema = cinema;
	}

	
	public Integer getHora() {
		return hora;
	}

	public void setHora(Integer hora) {
		this.hora = hora;
	}

	public Integer getFilme() {
		return filme;
	}

	public void setFilme(Integer filme) {
		this.filme = filme;
	}

	public Integer getCinema() {
		return cinema;
	}

	public void setCinema(Integer cinema) {
		this.cinema = cinema;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public long getId() {
		return id;
	}

	@Override
	public boolean isEdicaoValida() throws NegocioException, PrincipalException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isInclusaoValida() throws NegocioException,
			PrincipalException {
		// TODO Auto-generated method stub
		return false;
	}

}
